import request from '@/utils/request'

export function getRoleResourceList(data) {
  return request({
    url: '/api/user/roleResource/getRoleResourceList',
    method: 'post',
    data: data
  })
}

export function saveRoleResources(data) {
  return request({
    url: '/api/user/roleResource/saveRoleResourceList',
    method: 'post',
    data: data
  })
}

export function getSelectedResourceList(data) {
  return request({
    url: '/api/user/roleResource/getSelectedMenuResourceList',
    method: 'post',
    data: data
  })
}

export function saveAllRoleResources(data) {
  return request({
    url: '/api/user/roleResource/saveRoleResourceAllList',
    method: 'post',
    data: data
  })
}

export function getSelectedMenuResourceKeysList(data) {
  return request({
    url: '/api/user/roleResource/getSelectedMenuResourceKeysList',
    method: 'post',
    data: data
  })
}


